//package com.fowo.api.exportmodel.listener;
//
//import com.fowo.api.exportmodel.model.ExportEntityVo;
//import com.fowo.api.exportmodel.service.ExportCommonService;
//import com.fowo.api.sys.service.FileStorageService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
//import org.springframework.amqp.core.ExchangeTypes;
//import org.springframework.amqp.rabbit.annotation.Exchange;
//import org.springframework.amqp.rabbit.annotation.Queue;
//import org.springframework.amqp.rabbit.annotation.QueueBinding;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//
//@Slf4j
//@Component
//public class exportListener {
//    @Resource
//    private ExportCommonService exportCommonService;
//    @Resource
//    private FileStorageService fileStorageService;
//    /**
//     * 列队 系统通用导出
//     */
//    @RabbitListener(bindings = @QueueBinding(
//            value = @Queue(name = "exportCenter.queue", autoDelete = "true"),
//            exchange = @Exchange(name = "exportCenter.exchange", type = ExchangeTypes.DIRECT),
//            key = "exportCenter.key"))
//    public void export(ExportEntityVo exportVo ) throws Exception {
//        exportCommonService.export(exportVo);
//     }
//
//}
